﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Books.Models
{
    /// <summary>
    /// 用户类
    /// </summary>
    public class User
    {
        /// <summary>
        /// 用户ID，主键，自动增长
        /// </summary>
        public int UserID { get; set; }

        /// <summary>
        /// 用户名，唯一
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 电子邮件地址
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 注册日期
        /// </summary>
        public DateTime RegistrationDate { get; set; }

        /// <summary>
        /// 最后登录日期
        /// </summary>
        public DateTime LastLoginDate { get; set; }

        /// <summary>
        /// 账户是否激活
        /// </summary>
        public bool IsActive { get; set; }


        public List<BorrowRecord> borrowRecords { get; set; }


    }
}
